package yanc.app

import grails.converters.JSON
import org.slf4j.Logger
import org.slf4j.LoggerFactory

import java.text.SimpleDateFormat

class RegisterbookController {
    def feedbackService
    static final Logger logger = LoggerFactory.getLogger(RegisterbookController.class)

    def index() {
        render(view: "feedback")
    }

    def add() {
        def feedback = new Feedback()
        bindData(feedback, params)
        def flag = feedbackService.sa(feedback)
        if (flag) {
            render(view: "feedbackSucc")
        }
    }
}
